MarginLayoutParamsCompat

Deprecated

Use ViewGroup.MarginLayoutParams directly.

Helper for accessing API features in MarginLayoutParams in a backwards compatible way.

Functions

Link copied to clipboard
Returns the layout direction.
Link copied to clipboard
Get the relative ending margin that was set.
Link copied to clipboard
Get the relative starting margin that was set.
Link copied to clipboard
Check if margins are relative.
Link copied to clipboard
open fun resolveLayoutDirection(lp: @NonNull ViewGroup.MarginLayoutParams, layoutDirection: Int)
This will be called by requestLayout.
Link copied to clipboard
open fun setLayoutDirection(lp: @NonNull ViewGroup.MarginLayoutParams, layoutDirection: Int)
Set the layout direction.
Link copied to clipboard
open fun setMarginEnd(lp: @NonNull ViewGroup.MarginLayoutParams, marginEnd: Int)
Set the relative end margin.
Link copied to clipboard
open fun setMarginStart(lp: @NonNull ViewGroup.MarginLayoutParams, marginStart: Int)
Set the relative start margin.